package com.example.java2024_5_1searcher.searcher;

public class WordCnt {
    // 表示这个词在标题中出现的次数
    public int titleCount;
    // 表示这个词在正文中出现的次数
    public int contentCount;

    public WordCnt(int titleCount, int contentCount) {
        this.titleCount = titleCount;
        this.contentCount = contentCount;
    }

    public int getTitleCount() {
        return titleCount;
    }

    public void setTitleCount(int titleCount) {
        this.titleCount = titleCount;
    }

    public int getContentCount() {
        return contentCount;
    }

    public void setContentCount(int contentCount) {
        this.contentCount = contentCount;
    }
}
